package com.triones.ljr.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.triones.ljr.entity.bo.PolicyParams;
import com.triones.ljr.entity.dto.PolicyDO;
import com.triones.ljr.entity.vo.CustomPolicyVO;
import com.triones.ljr.entity.vo.PolicyVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 政策
 */
public interface PolicyMapper extends BaseMapperPlus<PolicyMapper, PolicyDO, PolicyVO> {
    /**
     * 获取政策详情
     * @param id
     * @return
     */
    CustomPolicyVO getPolicyDetail(@Param("id") Long id);

    /**
     * 列表（分页）
     * @param build
     * @param params
     * @return
     */
    Page<CustomPolicyVO> selectPageList(@Param("page") Page<Object> build, @Param("params") PolicyParams params);

    /**
     * 根据行业获取政策列表
     * @param industry
     * @return
     */
    List<CustomPolicyVO> policyListByIndustry(@Param("industry") String industry);
}
